package com.qf.lanzhou.blog.api.service;

import com.qf.lanzhou.blog.api.pojo.entity.Praise;

import java.util.List;

/**
 * @Author jian
 * @Date 2020/12/17 14:58
 * @JDK 1.8
 * @Version 1.0
 */
public interface PraiserInsertService {

    /**
     *   查询用户id和文章id是否存在
     * @param userId
     * @param articleId
     * @param praiseStatus
     * @return
     */
    List<Praise> selectPraiser(String userId, String articleId, String praiseStatus);

    /**
     * 添加点赞
     * @param userId
     * @param articleId
     * @param praiseStatus
     * @return
     */
    int addPraiser(String userId, String articleId, String praiseStatus);
    /**
     * 判断用户是否已点过赞或取消过赞
     * @param userId
     * @param articleId
     * @return Praise
     * */
    Praise checkPraiser(String userId,String articleId);

    Boolean praise(String userId,String articleId);
}
